home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 201-220 / scopedisk215 / autocli / autocli.doc < prev    next >
Text File  |  1995-03-19  |  35KB  |  749 lines

  1.             AutoCLI V2.09 13th Nov 1991 by Nic Wilson
  2.             -----------------------------------------
  3.         
  4.                 Nic Wilson Software
  5.                 138d South Street
  6.                 TOOWOOMBA Queensland 4350
  7.                 Australia 
  8.                 
  9.         Phone   (076) 358539  Home Voice only
  10.                 (076) 358384  Work or Fax
  11.                 (076) 358522  Work Voice only
  12.                 
  13.         EMAIL   {cbmvax|cbmehq}!cbmaus!wilson!nic@uunet.uu.net
  14.             
  15.  
  16.         Written in 100% Assembler using Devpac Amiga V2.14 on an 
  17.         Amiga 3000.
  18.  
  19.         AutoCLI is ShareWare.  I have not disabled it in any way.
  20.         This is so you can get full benefit immediately.  If you use 
  21.         it then please send a small donation and help me to bring more
  22.         programs to the Amiga.  Suggested donation is $20.00.
  23.         Donations will be accepted in any currency.  Mastercard, Visa 
  24.         or Bankcard can also be accepted by mail or by telephone.  
  25.         Overseas users, please do not send personal or Bank cheques.
  26.         Easiest form of payment from overseas is cash funds or American
  27.         Express Travellers Cheques or alternately disks are an acceptable
  28.         form of payment.   
  29.         
  30.         Permission is hereby granted to distribute this program on the
  31.         condition that no profit is gained gained from its distribution.
  32.         All document files must accompany it and remain unchanged.  If the
  33.         document files are crunched, then a suitable de-cruncher must also
  34.         be supplied with them that works on ALL model Amigas.  It may not
  35.         be distributed on those so called 'copyright' non distributable PD
  36.         disks.  It may be distributed on a BBS as long as that BBS does
  37.         NOT have individual charges for downloading of files.  
  38.         
  39.         Please send any bug reports or ideas to the address at the top of 
  40.         this file. 
  41.  
  42.         Commercial companies wishing to distribute, may contact me at the
  43.         address at the top of this file.
  44.  
  45.         I not only write commercial programs, but as you see I write 
  46.         non-commercial too.  If you like this program and you use it, 
  47.         then help me by sending a donation to the address below.
  48.  
  49.         This program is now fully tested an all Amiga models including
  50.         the A3000.  Full testing is also done with 'enforcer' a debugging
  51.         program that uses the MMU to look for and display invisible bugs.
  52.         I have found this program to be a worthwhile tool for programming.
  53.         MMU stands for Memory Management Unit and is found as a seperate
  54.         chip on 68020's and labeled 68851.  It is internal to a 68030/68040.
  55.         Enforcer comes as one of the tools under V2.0x Developers disks,
  56.         and is also available on Fish Disk #474.
  57.  
  58. NEW DOC FILE FROM V2.00
  59. -----------------------
  60.         Bugs and history has now been moved to a seperate file called
  61.         'autocli.history.doc'.  This allows for less cluttered docs.
  62.  
  63. ************************************************************************
  64. ABSOLUTELY IMPORTANT WHEN UPDATING TO A NEWER VERSION OF AutoCLI
  65. ----------------------------------------------------------------
  66.         There MUST only be one copy of AutoCLI in the current path.
  67.         Otherwise the special re-launcher code may find an older version
  68.         first and install it instead of the one you just loaded.  
  69.         Because newer version have new switches, and you may be using 
  70.         these, it could cause a crash if these were used on an older 
  71.         version.
  72. ************************************************************************
  73.  
  74. KNOWN BUGS OR CONFLICTS
  75. -----------------------   
  76.         Problems have been encountered with non standard versions of
  77.         the 'RUN' command.  This command is called by dos.library's 
  78.         'execute' function.  If you have problems with the Amiga crashing
  79.         when a CLI is popped up then make sure the 'run' command is
  80.         standard.  The one to use is the one you can find on a standard
  81.         Workbench disk.  It is not recommended that ARP Library commands
  82.         be used. I have found them to be the source of many problems. 
  83.  
  84. SUGGESTIONS
  85. -----------
  86.         If AutoCLI does not have your favourite function, or you can think
  87.         of any improvements, then write and tell me.  The very best
  88.         suggestions receive a FREE copy of my commercial NoVirus program
  89.         or AddMenu Plus Icons.  Include your telephone or fax number so
  90.         I can contact you if you are a winner.
  91.  
  92. NIC'S PROGRAM SUMMARY
  93. ---------------------
  94.         This program was written because of problems with the similar
  95.         program I had been using called 'popcli'.  Popcli crashed if used
  96.         under WorkBench/KickStart 2.0, and if used on a PAL Amiga to open
  97.         a CLI window with a vertical size greater than 200 lines, it did
  98.         not open if your Amiga decides to start in NTSC mode.  Popcli also
  99.         seems to waste CPU time when waiting and doesn't allow you to 
  100.         remove it from memory without crashing or a reboot.  AutoCLI 
  101.         will overcome all of the above problems and has many added features
  102.         equivalent to other programs around, but uses much less CPU time.
  103.         The biggest problem with all the others, is that they lose the 
  104.         Current directory, stack and path.  AutoCLI retains all this 
  105.         including the current directory when the program was launched, 
  106.         it will place you in this directory every time you open a CLI or
  107.         Shell.  Other programs such as DMouse or Mackie had their own 
  108.         individual problems and I could not find any written in 100% 
  109.         assembler.  So I decided to write AutoCLI, and with lots of response
  110.         from the Amiga Community has become the most powerful utility of 
  111.         its type on the Amiga.  I thank all those who have supported 
  112.         AutoCLI by sending their donations.
  113.  
  114.  
  115. FEATURES
  116. --------
  117.         * Kickstart / Workbench 1.2, 1.3, 2.0x compatible
  118.  
  119.         * Compatible with A500, A1000, A2000, A2500, A3000
  120.  
  121.         * New Anti-Virus Event handler monitors your memory
  122.  
  123.         * Automatically checks and warns of restart vector changes
  124.  
  125.         * Default or custom CLI / Shell windows
  126.  
  127.         * Default windows open to 1 pixel less than current screen
  128.         
  129.         * 20 Function key scripts 
  130.  
  131.         * Update completely once running
  132.  
  133.         * Asynchronous 'options window' allows modification while running
  134.         
  135.         * Option window can be opened in your specified location
  136.  
  137.         * Active window to front or point to front options
  138.  
  139.         * Screen shuffle option with keyboard or mouse control
  140.         
  141.         * Window shuffle option
  142.  
  143.         * Screen blanking after time period, with optional spline patterning
  144.  
  145.         * Mouse blanking on key press or time option
  146.  
  147.         * Mouse acceleration with optional speeds
  148.         
  149.         * Slow down hot key for mouse accelleration function
  150.  
  151.         * Auto Window activation on a key press/mouse position option.
  152.  
  153.         * Option to swap mouse buttons for left handed users
  154.  
  155.         * Selectable task priority
  156.  
  157.         * No CPU time wastage
  158.  
  159.         * 100% machine code
  160.  
  161.         * Freely distributable Shareware program
  162.         
  163.         * Plus much much more...
  164.        
  165.  
  166. PROGRAM USAGE FOR INSTALLING AutoCLI
  167. ------------------------------------
  168.  
  169. AutoCLI [<optional switches>] [<optional seconds>] [<optional command>]
  170.  
  171.         YOU MUST NOT USE RUN or RUNBACK when launching AutoCLI.  It will 
  172.         return the command line prompt and allow the window it was launched
  173.         from to close, when an 'ENDCLI' command is given.  It still retains
  174.         the directory it was launched from and does not lose the current
  175.         path or stack.  This means when a CLI is popped up, it will 
  176.         default to the directory that was current, when AutoCLI was
  177.         launched.  The path and stack that was set, will still be valid. 
  178.  
  179.         The program is mainly designed to be used in your startup-sequence
  180.         (or user-startup in V2.0x), so you will always have a CLI or Shell
  181.         window available very conveniently.  AutoCLI MUST reside in your
  182.         C: directory or be in a directory in the path.
  183.  
  184.  
  185. OPTIONAL SWITCHES
  186. -----------------
  187.         The following switches do not have to be given in any particular
  188.         order, but must all be before the optional seconds and command
  189.         parameters.  All options default to OFF and must be enabled with
  190.         a switch.
  191.  
  192.         Any of these options can be modified after launch, by using the 
  193.         Option Window provided. (see OPTIONS WINDOW below)
  194.  
  195. -f<r>[n]    
  196.  
  197.         This switch enables function key trapping.  When your qualifier
  198.         (see below) is held down and a function key pressed, the       
  199.         program will execute a script file in the assigned S:          
  200.         directory with a filename of autocli.f1 to autocli.f10.      
  201.         This file must be a normal script (eg. startup-sequence).
  202.             
  203.         The extra two switches <r> and [n] are for changing the qualifier
  204.         for the extra 10 keys giving a total of 20 function key scripts.
  205.         The optional 'r' parameter forces the qualifier for these 10 to 
  206.         be the right hand key of 'n'. The 'n' parameter tells AutoCLI 
  207.         which key you want as the qualifier for these extra 10 function
  208.         key scripts.  If none of these are given the it will default to
  209.         the Right Amiga key.  The other choices are as shown below in the
  210.         example.  Filenames for these extra 10 must be:- autocli.e1 to 
  211.         autocli.e10.  These files as above must be in the assigned S:
  212.         directory and be a normal script files.
  213.             
  214.     EXAMPLES
  215.                     
  216.     -f    Gives extra 10 and the second qualifier is Right Amiga 
  217.     -frd  Gives extra 10 and the second qualifier is Right Amiga (AS FOR DEFAULT)
  218.     -fra  Gives extra 10 and the second qualifier is Right Alt
  219.     -frs  Gives extra 10 and the second qualifier is Right Shift
  220.     -fc   Gives extra 10 and the second qualifier is Control          
  221.     -fd   Gives extra 10 and the second qualifier is Left  Amiga
  222.     -fa   Gives extra 10 and the second qualifier is Left  Alt
  223.     -fs   Gives extra 10 and the second qualifier is Left  Shift
  224.     
  225.         Please note that the second qualifier MUST be different to the
  226.         normal qualifier key that you have chosen.  If you select the
  227.         same then the AutoCLI will display an error window.
  228.             
  229.     *************************************************************
  230.             
  231.     FILENAMES FOR FIRST 10 SCRIPTS:-  S:autocli.f1  to  S:autocli.f10
  232.     FILENAMES FOR EXTRA 10 SCRIPTS:-  S:autocli.e1  to  S:autocli.e10
  233.            
  234.     *************************************************************
  235.             
  236.     
  237.         WINDOW TO FRONT
  238.         ---------------
  239.  
  240. -w[n]       
  241.  
  242.         This switch enables the window to front option.  The optional
  243.         parameter [n] selects the action required to bring it to the
  244.         front.  0 = use keyboard, 1 = use mouse.  To use keyboard 
  245.         select the window you want at the front by clicking the left 
  246.         mouse inside the window and then hold your qualifier key 
  247.         (see below) and pressing the Left ALT key. 
  248.         To use the mouse simply place the mouse in the window you
  249.         want at the front and the window will immediately appear at
  250.         the front.  Both can be temporarily disabled via the option
  251.         window.
  252.         
  253.         EXAMPLES
  254.          
  255.         for keyboard   -w0   or  -w
  256.         for mouse      -w1
  257.  
  258.         
  259.         SCREEN SHUFFLE
  260.         --------------          
  261.  
  262. -n[n]       
  263.  
  264.         This switch enables the screen shuffle option.  Two optional
  265.         parameters for [n] are 1 or 2.  1 enables or disables the mouse 
  266.         activated part of the screen shuffling.  If you want the mouse 
  267.         activation then you can leave this parameter off (eg. -n) 
  268.         If you want to disable this feature in case of conflictions with
  269.         other programs such as DirectoryOpus then use -n1.  The third
  270.         option is 2 which enables the mouse activated part as -n does,
  271.         but stops the screen being activated when brought to the front.
  272.             
  273.         EXAMPLES
  274.         
  275.         for keyboard, mouse & screen activation    -n  
  276.         for keyboard  only & screen activation     -n1
  277.         for keyboard, mouse & no screen activation -n2
  278.                 
  279.         To use this function, hold down your qualifier key and use the 
  280.         cursor up or down keys to rotate all screens in opposite 
  281.         directions. 
  282.         If you prefer you can hold down the left mouse button and 
  283.         click the right button to shuffle the screens (if enabled).
  284.             
  285.         Screen shuffle is different to the standard LEFT AMIGA N & M.  
  286.         These standard keys only swap between the front and rear most       
  287.         screens.
  288.             
  289.         WINDOW SHUFFLE
  290.         --------------            
  291.  
  292. -m          
  293.  
  294.         This switch enables the window shuffle option.  To use this
  295.         function, hold down your qualifier key and use the cursor
  296.         left or right keys.  This will move the front most window to
  297.         the back or the back most window to the front respectively.
  298.         The window shuffle always occurs on the screen that is at
  299.         the front.  This allows you to easily move between windows
  300.         and screens by using the qualifier and all the cursor keys
  301.     
  302.         MOUSE ACCELERATION
  303.         ------------------    
  304.     
  305. -q[n]        
  306.  
  307.         This switch enables mouse acceleration.  The optional parameter
  308.         [n] is a speed from 1 to 3.  Speed 1 will multiply all mouse 
  309.         movements by a factor of 2.  Speed 2 will multiply by a factor of
  310.         4, and speed 3 is a special case, it will multiply by the amount
  311.         the mouse actually moved, this mode was preferred by a lot of
  312.         users because it will give a small acceleration if the mouse is
  313.         moved a short distance, increasing more and more the further and
  314.         faster you move the mouse.  This function works in conjunction
  315.         with mouse speed under preferences, so this can also be changed to
  316.         find the best possible combination that you like.  If this second
  317.         paramter is not given then it will default to speed 1.  
  318.         
  319.         EXAMPLES
  320.          
  321.         for 4 times speed up the switch should be -q2
  322.         for default speed of 2 times it should be -q
  323.         for automatic linear speed increase       -q3
  324.  
  325.         
  326.         MOUSE ACCLERATION SLOW DOWN KEY
  327.         -------------------------------
  328.         
  329.         Mouse accelleration can be temporarily slowed down for fine control
  330.         of the mouse by holding down your first qualifier key.
  331.              
  332.         
  333.         TASK PRIORITY   (NOT RECOMMENED TO BE CHANGED)
  334.         -------------   ------------------------------
  335.  
  336. -p[n]        
  337.  
  338.         This switch allows you to change the priority of AutoCLI.
  339.         Without this switch it will default to 21.  Valid values 
  340.         for [n] are 0 - 21, bad values will cause the default value
  341.         to be used.
  342.         
  343.         EXAMPLES
  344.          
  345.         for a priority of 0  the switch should be -p0
  346.         for a priority of 20 the switch should be -p20
  347.              
  348.         NOTE
  349.              
  350.         If the priority is changed from 21, some functions may not
  351.         work correctly. Use with caution.
  352.              
  353.         AUTO WINDOW ACTIVATION
  354.         ----------------------             
  355.  
  356. -k      
  357.         This switch enables auto window activation.  If enabled this
  358.         function will activate any window the mouse is currently in 
  359.         when a key is pressed, unless a string gadget is currently active
  360.         in another window.  It will still work even if another screen is
  361.         at the front, and you have dragged it down and placed the mouse 
  362.         over a window on the screen behind.
  363.         
  364.         MOUSE MOVEMENT LOCKING & FREEZING
  365.         ---------------------------------
  366.  
  367. -l or -lr   
  368.  
  369.         TO TEMPORARILY LOCK X or Y MOVEMENTS
  370.  
  371.         This switch allows the mouse movements to be frozen in vertical,
  372.         horizontal or both directions, by holding down a key or keys.  A
  373.         freeze mouse toggle is also supported.  If the CONTROL key is 
  374.         held down the horizontal movements are frozen.  If the LEFT ALT 
  375.         key is held down then the vertical movements are frozen.  If both 
  376.         are held down then all movements are frozen.  When either of these
  377.         keys are released then movements continue in that direction.
  378.             
  379.         If the CONTROL and LEFT ALT  keys conflict with your first or
  380.         second qualifier keys (see -s -c -a, -f) then use the -lr switch
  381.         instead. The lock keys will change to RIGHT SHIFT for horizontal
  382.         and RIGHT ALT for vertical.  These two modes can be toggled from
  383.         the option window.
  384.         
  385.         TO FREEZE ALL MOVEMENTS OF MOUSE FOR EXTENDED PERIOD
  386.             
  387.         If you want to freeze the entire mouse movements for an extended
  388.         period (EG. Over the start gadget of a copy program etc.) then
  389.         hold down your first qualifier key and press the right mouse 
  390.         button.  This will freeze the mouse permanently until the same
  391.         combination (first qualifier/right mouse) is received again.
  392.         If mouse blanking is enabled, the mouse will still blank while
  393.         frozen.  Moving the mouse will cause it to be re-displayed yet
  394.         no movement will occur.
  395.             
  396.             
  397.         MOUSE BLANKING
  398.         --------------            
  399.  
  400. -b          
  401.         This switch enables mouse blanking.  When any key is pressed,
  402.         or if no mouse movement is detected within 30 seconds the mouse
  403.         pointer will be blanked.  As soon as the mouse is moved the 
  404.         pointer will be returned immediately.  This overcomes the annoying
  405.         habit of the pointer always being in the way while typing.
  406.  
  407.         LEFTY MOUSE
  408.         -----------
  409.  
  410. -e          
  411.  
  412.         This switch electrically exchanges the left and right hand buttons
  413.         on the mouse.  All programs that use the mouse correctly will
  414.         work.  If the mouse is checked by hardware then the swap will
  415.         not occur.  This switch can be toggled from the option window.
  416.         
  417.         QUALIFIER KEY
  418.         -------------            
  419.  
  420. -s  -c  -a  
  421.  
  422.         The default qualifier key is the LEFT AMIGA but this can be 
  423.         changed with a switch.  The -s switch changes the qualifier 
  424.         key to the SHIFT key.  The -c switch changes it to the CONTROL 
  425.         key, and the -a switch changes it to the ALT key.  To use the 
  426.         default key (LEFT AMIGA) then don't use any of these three 
  427.         switches.  Note that this qualifier key is also the same for 
  428.         the autocli function as well.
  429.             
  430. -r          
  431.  
  432.         The above qualifier is, by default, the key on the LEFT side   
  433.         of the keyboard.  To change this to the RIGHT side, use thi    
  434.         switch.                 
  435.              
  436.         SCREEN BLANKING SECONDS AND SPLINE PATTERNING OPTIONS
  437.         -----------------------------------------------------             
  438.              
  439.         OPTIONAL SECONDS
  440.         ----------------
  441.         
  442.         This is an optional time (in seconds) to blank the screen 
  443.         when no user input is detected. The default is off, so if 
  444.         blanking is not wanted then do not give a time at all.  When 
  445.         the screen has been blanked, it can be turned on again by 
  446.         touching any key or moving the mouse. This number must be
  447.         after ALL of the switches including those below that are
  448.         used in conjunction with this. It has been left this way
  449.         to remain compatible with older versions.
  450.             
  451.         You can blank the screen immediately as if the time had expired 
  452.         by pressing holding your first qualifier key and pressing your
  453.         second qualifier key.
  454.         
  455.         One point to keep in mind is that if there is a lot of CPU 
  456.         activity while blanked, AutoCLI may take a little while to 
  457.         respond to an event to un-blank as its priority is at -10.
  458.         
  459.         
  460.         SPLINE PATTERNING OPTIONS
  461.         -------------------------
  462.  
  463. -l[<r><t><o><s>]<c[n]>  
  464.     
  465.         This switch has a double function with various options.  It is
  466.         used in conjunction with screen blanking.  See 'OPTIONAL SECONDS'
  467.         and -lfb below.  The 'a' part of the switch forces the program
  468.         to randomly change to all spline patterns.  Each time the routine
  469.         finishes drawing your selected number of lines in a certain 
  470.         pattern, it has one chance in twice your chosen number of lines
  471.         of changing patterns.  Sometimes they may change rapidly or 
  472.         slowly.  If you prefer a set pattern, you may use one of the 
  473.         following switch parts instead.  The 't' part of this switch 
  474.         forces the spline pattern to be triangles.  The 'o' part forces 
  475.         open ended triangles and 's' is for single lines.  Try them all 
  476.         and see which your prefer or select random.  Only one of these four
  477.         are allowed, either 'a','t', 'o' or 's' NOT MORE THAN ONE.  If all 
  478.         of these are omitted, a default pattern of boxes will be used.  
  479.         These can also by changed while running in the option window.  At 
  480.         the bottom of the option window is a string gadget containing the 
  481.         number of spline lines to draw.  Your chosen switch part precedes 
  482.         this value within the string gadget and can be modified if you
  483.         wish.  If AutoCLI was launched without one of these switches 
  484.         (default pattern) you may still change patterns by inserting one
  485.         of the switch parts before the value in the string gadget.
  486.         (EG. If gadget had 65, to change to random, gadget would become
  487.         a65 etc.).
  488.           
  489.         The 'c[n]' part of the switch changes the number  of lines the 
  490.         spline patterning routine draws defined by the 'n' portion.  This 
  491.         value can have be between 2 - 100 or 0.  If this switch is not 
  492.         given then a default value of 65 will be used.  If you do not want 
  493.         spline patterning, and prefer a blank black screen when blanked,
  494.         use 0 as the parameter (IE. -lc0 ).  To change the speed of the 
  495.         splines see the -lfb parameter.  If a number too large is given 
  496.         for 'n', it will default to 100, similarly if a number too small
  497.         is given, it will default to 2.
  498.              
  499.         EXAMPLES
  500.         
  501.         -lt    Gives Triangles with default of 65 lines
  502.         -lo    Gives Open sided boxes with default 65 lines
  503.         -ls    Gives Single lines with default of 65 lines
  504.         -la    Gives random changing patterns with default 65 lines
  505.         -lc50  Gives boxes with 50 lines
  506.         -ltc45 Gives triangles with 45 lines
  507.         -loc45 Gives Open sided boxes with 45 lines
  508.         -lsc45 Gives Single lines with 45 lines
  509.         -lac30 Gives random changing patterns with 30 lines
  510.         -lc0   Gives blank black screen
  511.  
  512. -l<f><b>        
  513.  
  514.         This double switch is used in conjunction with screen blanking.
  515.         The switch has two parts the 'f' part and 'b' part.  You may
  516.         use one or both of them. 
  517.         If the 'f' part is given, then the spline patterning will go
  518.         as fast as it will run on your Amiga.  If not given it will be 
  519.         timed to go about the same speed on all Amiga's by using a
  520.         vertical interuppt, and will be slower.
  521.         If the 'b' part is given then the blanking screen will be
  522.         2 bitplanes instead of 1.  2 bitplanes allows more colours
  523.         to be displayed on the spline screen at once.  In 2 bitplane
  524.         mode the routine will use around 120K of chip memory, so 
  525.         only select this mode if you have that amount free.  The memory 
  526.         is only used when the screen is blanked and is given back 
  527.         when un-blanked. 
  528.         1 bitplane mode only allows a single colour to be used at
  529.         one time to draw the splines (although it will cycle to
  530.         different colours).  This requires only half the amount
  531.         of chip memory and should work alright on all Amiga's, unless
  532.         your chip memory usage is very large.
  533.         If you have chosen 2 bitplanes and screen blanking doesn't
  534.         seem to work try removing the 'b', and try again.
  535.             
  536.         EXAMPLE
  537.           
  538.         -lf   speed up splines and use 2 colours        (1 + background)
  539.         -lb   splines timed by VBlank and use 4 colours (3 + background)
  540.         -lfb  speed up splines and use 4 colours        (3 + background)           
  541.                         
  542.  
  543. -x[n]   This switch allows you to specify the initial horizontal 
  544.         co-ordinate of the option window.  The value of [n] must
  545.         be between 0 and (screen width - 272 ).  If an incorrect value
  546.         is given it will be modified to bring the window inside
  547.         the screen area.  If the window is dragged while open, 
  548.         subsequent openings will will be at this new position.
  549.         
  550.         EXAMPLE
  551.         
  552.         -x100  Left edge of the option window is at pixel 100 
  553.         
  554.         For a screen that is 640 pixels wide the maximum number
  555.         would be (screen width - 272) = (640 - 272) = 368
  556.  
  557. -y[n]   This switch allows you to specify the initial vertical 
  558.         co-ordinate of the option window.  The value of [n] must
  559.         be between 0 and (screen height - 200 ).  If an incorrect value
  560.         is given it will be modified to bring the window inside
  561.         the screen area.  If the window is dragged while open, 
  562.         subsequent openings will will be at this new position.
  563.         
  564.         
  565.         EXAMPLE
  566.         
  567.         -y50  Top edge of the option window is at pixel 50 
  568.         
  569.         For a screen that is 256 pixels high (EG. PAL HighRes) the 
  570.         maximum number would be (screen height - 200) = (256 - 200) = 56
  571.         
  572.         For a screen that is 200 pixels high (EG. NTSC HighRes) the
  573.         maximum number would be (screen height - 200) = (200 - 200) = 0 
  574.         
  575.  
  576.         USAGE DISPLAY
  577.         -------------
  578.  
  579. ?           
  580.  
  581.         If the only switch is a single question mark, then AutoCLI
  582.         will display a USAGE string on the current CLI window.  
  583.         It will not install or remove itself.
  584.             
  585.         REMOVING AutoCLI from the CLI
  586.         -----------------------------            
  587. remove      
  588.  
  589.         This switch should be used on its own.  It will signal
  590.         the current version of AutoCLI to shut down and remove 
  591.         itself.  Whenever it attempts this removal, a success
  592.         or failure message will be displayed on the CLI window.
  593.         To remove from Workbench, see OPTIONS WINDOW.
  594.  
  595. WARNING WINDOW
  596. --------------
  597.         The event handler constantly checks the restart vectors against
  598.         values that were there when AutoCLI was first launched.  These
  599.         vectors are often modified by viruses in order to survive a
  600.         reboot.  If this happens during normal operation, (IE. file
  601.         virus gets launched) then AutoCLI will open a small warning
  602.         window and ask you if you wish to replace them with their
  603.         original values or leave them.   For example mounting RAD:
  604.         and then accessing it will change these vectors but is of course
  605.         O.K., and not a virus.  You would answer NO to the question, 
  606.         AutoCLI will then accept these changes as OK.
  607.  
  608. OPTIONS WINDOW
  609. --------------
  610.         This function is always available, even if function key scripts
  611.         (-f) is turned off.  It is accessed by holding your first qualifier
  612.         key and pressing HELP.  A window will open on the front most 
  613.         screen with gadgets set with your current options.  This window
  614.         is asynchronous to the main program.  This means that all AutoCLI
  615.         functions will continue to operate if the options window is open.
  616.         Click on the gadgets to turn functions on or off.  Some fuctions
  617.         have more than one setting and each click of its particular 
  618.         gadget will cycle that gadget through all possible modes.  The
  619.         text string beside the gadget will also change to help you 
  620.         remember the function of each particular setting.
  621.         
  622.         The command string that is executed when first qualifier ESC is 
  623.         pressed will be displayed in a string gadget called 'Command 
  624.         String'.  If you are using Auto sizing CLI/Shell windows, this
  625.         string gadget will be ghosted.  To use a modiified string or
  626.         replace it completely, click the 'AUTO' gadget.  The gadget will
  627.         now show 'MANUAL' and the string gadget will be available and be
  628.         selected for your input.  You can always return to Auto sizing by
  629.         re-enabling the 'AUTO' mode.
  630.         
  631.         Screen blanking time can be changed by clicking in the gadget
  632.         and changing it accordingly.  If you turn screen blanking on, but
  633.         give no time, then a default time of 500 seconds will be set.
  634.         
  635.         The number of lines to draw in the spline patterning code can
  636.         be changed by clicking in the gadget and changing it accordingly.
  637.         if an incorrect value is given then the closest correct value will
  638.         immediately appear in the gadget.  A totally incorrect response
  639.         will force a value of 65 to be placed in the gadget.  The type
  640.         of pattern to use (boxes or triangles) is incorporated into this
  641.         gadget.  If you selected triangles or wish to select triangles 
  642.         then a 't' should precede the value. (IE. to show triangles with
  643.         50 lines, this gadget should show t50).
  644.         
  645.         At the bottom of the window are two gadgets, 'OK' and 'REMOVE'.
  646.         The remove gadget will remove AutoCLI from memory completely.  The
  647.         'OK' gadget will set the new options you have made.  
  648.         
  649. OPTIONAL COMMAND (command run when 'Qualifer ESC' is pressed)
  650. ----------------
  651.         If no optional command is given then AutoCLI will use a default
  652.         command.  This default command is:-  
  653.         AutoCLI will launch and wait for your qualifier key and ESCAPE to 
  654.         be pressed.  When this event occurs AutoCLI will open a CLI or 
  655.         Shell window 1 pixel less than the size of the WorkBench Screen at
  656.         the time it is opened.  If resolution mode is changed AutoCLI will
  657.         notice the change.  If NEWCON: is available, a Shell window will 
  658.         open instead of a CLI window and if running under V2.0x of 
  659.         Workbench, the window will have a close gadget.    
  660.  
  661.         If an optional command is given, AutoCLI will execute that command
  662.         in preference to the default CLI/SHELL window when your qualifier
  663.         key and ESCAPE is pressed (see EXAMPLES).  This allows custom 
  664.         commands or custom size CLI/Shell windows to be used.  Note that
  665.         if AutoCLI is already in memory it will update itself to to 
  666.         reflect all parmeters given.
  667.         
  668.         The Optional Command can be modified after launch within the option
  669.         window.  Click the gadget beside the 'Command String' string gadget
  670.         until it shows 'MANUAL', the string gadget will be activated for 
  671.         you.  The command can then be modified and the program will use
  672.         this new string.  The default string can always be re-selected by
  673.         clicking the gadget until it shows 'AUTO'. 
  674.  
  675. UPDATING AutoCLI ONCE ALREADY RUNNING
  676. -------------------------------------
  677.         Most changes can be made via the options window, or you can launch
  678.         again from the CLI and supply a whole new set of parameters and it
  679.         will completely update itself.  If launched with a newer version
  680.         this newer version is NOT installed, it will simply supply a new
  681.         set of parameters to the current version.
  682.  
  683.  
  684. EXAMPLES
  685. --------  
  686.  AutoCLI -frd -w -n -b -q2 -m -k -l -lfb -ltc50 600 
  687.         
  688.         Opens a Shell window with automatic full size minus 1 pixel.
  689.         Enables 20 function keys with RIGHT AMIGA as the qualifier for the
  690.         second 10.  Selects the LEFT AMIGA as your qualifier.  Enables the 
  691.         window to front option.  Enables the screen shuffle option.  
  692.         Enables the window shuffle option.  Enables pointer lock.  Enables
  693.         auto window activation. Enables mouse blanking.  Enables mouse
  694.         acceleration at the second rate.  Enables screen blanking after 
  695.         10 mins of non use, draws triangles with 50 spline patterning lines,
  696.         using 4 colours in fast mode. 
  697.      
  698.  AutoCLI -f -w0 -n -m -k -l -r -s 600 newshell newcon:0/10/640/150/MyShell
  699.  
  700.         Opens a Shell window with a title of 'MyShell', enables function 
  701.         keys, selects the RIGHT SHIFT (-r -s) as your qualifier and right 
  702.         Amiga as the second qualifier (-f), enables the window to front 
  703.         option ,enables the screen shuffle option, enables the window shuffle,
  704.         enables pointer lock, enables auto activation, and will blank the
  705.         screen after 10 mins of non use). 
  706.  
  707.  AutoCLI -f -w0 -q2 YourProg
  708.         Runs a file called YourProg.  When LEFT AMIGA/ESCAPE is pressed
  709.         enables function keys, window to front and will disable the screen 
  710.         blanking (ie. no time given), and will accellerate the mouse by
  711.         a factor of 4. 
  712.                                
  713.  AutoCLI remove
  714.  
  715.         Attempts to remove the currently running version from memory
  716.         and displays a success or failure message).
  717.  
  718. REQUIREMENTS
  719. ------------
  720. The following commands MUST be available in the current C: directory :- 
  721.    
  722. run             ; c directory (called by the DOS Execute function)
  723. newcli          ; c directory (called by AutoCLI if NEWCON not available)
  724. newshell        ; c directory (called by AutoCLI if NEWCON is available)
  725. shell-seg       ; l directory (needed if NEWCON: is mounted)
  726. AutoCLI         ; c directory or current directory when launched.
  727.  
  728. The following commands, devices, files are optional :-
  729.  
  730. cli-startup     ; s directory (script executed by Newcli)
  731. shell-startup   ; s directory (script executed by NewShell)
  732. NEWCON:         ; (must be mounted to enable Shell instead of CLI)
  733. AutoCLI.f1      ; s directory (script file for qualifier/F1)
  734. AutoCLI.f2      ; s directory (script file for qualifier/F2)
  735. ...etc.
  736. AutoCLI.e1      ; s directory (script file for 2nd qualifier/F1)
  737. AutoCLI.e2      ; s directory (script file for 2nd qualifier/F2)
  738. ...etc.
  739.  
  740. NOTE: 'Amiga' is a Trademark of Commodore Amiga Inc.
  741. The idea for Pointer Lock came from a program 'Tame Pointer' by JOHN ROWE,
  742. a very close and talented friend of mine who has written some wonderful
  743. programs for the Amiga in Lattice C.
  744.  
  745.  
  746.       
  747.  
  748.                     
  749.